package com.gateway;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;

/**
 * Created by
 *
 * 这么配置就不会去除前缀
 * zuul:
 *   routes:
 *     user-service:
 *       path: /user/**
 *       serviceId: user-service
 *       strip-prefix: false
 *
 *
 * @author touni
 * @date 2019/4/12
 * @time 18:13
 */
@EnableDiscoveryClient
@SpringBootApplication
@EnableZuulProxy
public class ZuulApp {

    public static void main(String[] args) {


        SpringApplication.run(ZuulApp.class);

    }


}
